﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="TinyForum.Domain" namespace="TinyForum.Domain.Model">
  <class name="Account" table="Accounts" lazy="true">
    <id name="ID">
      <generator class="identity"/>
    </id>
    <property name="UserName" not-null="true" access="field.camelcase" unique="true" length="20"/>
    <property name="Password" not-null="true" access="field.camelcase"/>
    <property name="DisplayName" not-null="true" access="field.camelcase" length="50"/>
    <property name="Avatar" access="field.camelcase"/>
    <property name="Email" access="field.camelcase" not-null="true" unique="true"/>
    <property name="DateJoined" access="field.camelcase" not-null="true"/>
    <property name="DateLastLogon" access="field.camelcase" not-null="false"/>
    <property name="IsAdmin" access="field.camelcase"/>
    <property name="IsOnline" access="field.camelcase"/>
    <property name="IsLocked" access="field.camelcase"/>
    <property name="IsApproved" access="field.camelcase"/>
    <property name="DateLastLocked" access="field.camelcase" not-null="false"/>
    <property name="DateLastPasswordChanged" access="field.camelcase" not-null="false"/>
    <property name="PasswordQuestion" access="field.camelcase" not-null="true"/>
    <property name="PasswordAnswer" access="field.camelcase" not-null="true"/>
  </class>
</hibernate-mapping>